{% extends 'database/base.html' %}

{% block title_content %}编辑信息{% endblock %}

{% block body_content %}
<h1 class="display-1">编辑信息</h1>
<div class="card">
  <h5 class="card-header">
    {{ object.name }}的信息
  </h5>
   <ul class="list-group list-group-flush">
    <li class="list-group-item">ID：{{ object.id }}</li>
    <li class="list-group-item">商铺ID：{{ object.sto_id }}</li>
    <li class="list-group-item">名字：{{ object.name }}</li>
     <li class="list-group-item">单价：{{ object.price }}</li>
  </ul>
  <div class="card-body">
        <a href="{% url 'delivery_database:seller_food_update' id object.pk %}" class="btn btn-primary">编辑</a>
        <a href="{% url 'delivery_database:seller_food_delete' id object.pk %}" class="btn btn-primary">删除</a>
      <a href="{% url 'delivery_database:seller_food_list' id %}" class="btn btn-primary">返回</a>
  </div>
</div>
{% endblock %}